package cn.edu.cug.cs.gtl.apis.ui.actions;

import cn.edu.cug.cs.gtl.apis.ui.AbstractApplication;

import javax.swing.*;

public abstract  class AbstractAction extends javax.swing.AbstractAction implements Action {
    protected JMenuItem menuItem=new JMenuItem();
    protected JButton button = new JButton();

    protected String name = "AbstractAction";

    protected AbstractApplication theApp = null;

    @Override
    public JMenuItem getMenuItem() {
        return menuItem;
    }

    @Override
    public JButton getButton() {
        return button;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }


}
